home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-01-13 | 3.0 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5b 2f 63 6c 61 73 73 20 |........|[/class |
|00000010| 47 55 49 4d 75 6c 74 69 | 43 6f 6c 75 6d 6e 4c 69 |GUIMulti|ColumnLi|
|00000020| 73 74 20 65 78 74 65 6e | 64 73 20 47 55 49 56 65 |st exten|ds GUIVe|
|00000030| 72 74 4c 69 73 74 0d 0a | 09 6e 61 74 69 76 65 3b |rtList..|.native;|
|00000040| 0d 0a 0d 0a 73 74 72 75 | 63 74 20 6e 61 74 69 76 |....stru|ct nativ|
|00000050| 65 20 4d 75 6c 74 69 43 | 6f 6c 75 6d 6e 53 6f 72 |e MultiC|olumnSor|
|00000060| 74 44 61 74 61 0d 0a 7b | 0d 0a 09 76 61 72 20 73 |tData..{|...var s|
|00000070| 74 72 69 6e 67 20 53 6f | 72 74 53 74 72 69 6e 67 |tring So|rtString|
|00000080| 3b 0d 0a 09 76 61 72 20 | 63 6f 6e 73 74 20 69 6e |;...var |const in|
|00000090| 74 20 53 6f 72 74 49 74 | 65 6d 3b 0d 0a 7d 3b 0d |t SortIt|em;..};.|
|000000a0| 0a 0d 0a 76 61 72 20 61 | 72 72 61 79 3c 4d 75 6c |...var a|rray<Mul|
|000000b0| 74 69 43 6f 6c 75 6d 6e | 53 6f 72 74 44 61 74 61 |tiColumn|SortData|
|000000c0| 3e 20 53 6f 72 74 44 61 | 74 61 3b 0d 0a 76 61 72 |> SortDa|ta;..var|
|000000d0| 20 61 72 72 61 79 3c 69 | 6e 74 3e 20 49 6e 76 53 | array<i|nt> InvS|
|000000e0| 6f 72 74 44 61 74 61 3b | 0d 0a 76 61 72 20 6c 6f |ortData;|..var lo|
|000000f0| 63 61 6c 69 7a 65 64 20 | 73 74 72 69 6e 67 20 43 |calized |string C|
|00000100| 6f 6c 75 6d 6e 48 65 61 | 64 69 6e 67 73 5b 38 5d |olumnHea|dings[8]|
|00000110| 3b 20 20 2f 2f 20 63 6f | 75 6e 74 69 6e 67 20 6f |; // co|unting o|
|00000120| 6e 20 6e 75 6d 62 65 72 | 20 6f 66 20 43 6f 6c 75 |n number| of Colu|
|00000130| 6d 6e 57 69 64 74 68 73 | 20 74 6f 20 62 65 20 3c |mnWidths| to be <|
|00000140| 3d 20 23 20 43 6f 6c 75 | 6d 6e 48 65 61 64 69 6e |= # Colu|mnHeadin|
|00000150| 67 73 0d 0a 76 61 72 20 | 61 72 72 61 79 3c 66 6c |gs..var |array<fl|
|00000160| 6f 61 74 3e 20 43 6f 6c | 75 6d 6e 57 69 64 74 68 |oat> Col|umnWidth|
|00000170| 73 3b 0d 0a 76 61 72 20 | 61 72 72 61 79 3c 66 6c |s;..var |array<fl|
|00000180| 6f 61 74 3e 20 49 6e 69 | 74 43 6f 6c 75 6d 6e 50 |oat> Ini|tColumnP|
|00000190| 65 72 63 3b 20 2f 2f 20 | 55 73 65 64 20 74 6f 20 |erc; // |Used to |
|000001a0| 69 6e 69 74 69 61 6c 69 | 7a 65 20 63 6f 6c 75 6d |initiali|ze colum|
|000001b0| 6e 20 77 69 64 74 68 20 | 74 6f 20 73 63 72 65 65 |n width |to scree|
|000001c0| 6e 2d 72 65 6c 61 74 69 | 76 65 20 73 69 7a 65 20 |n-relati|ve size |
|000001d0| 28 69 66 20 64 65 73 69 | 72 65 64 29 0d 0a 76 61 |(if desi|red)..va|
|000001e0| 72 20 66 6c 6f 61 74 20 | 43 65 6c 6c 53 70 61 63 |r float |CellSpac|
|000001f0| 69 6e 67 3b 0d 0a 76 61 | 72 20 69 6e 74 20 53 6f |ing;..va|r int So|
|00000200| 72 74 43 6f 6c 75 6d 6e | 3b 20 2f 2f 20 49 66 20 |rtColumn|; // If |
|00000210| 2d 31 20 2d 20 64 6f 6e | 74 20 73 6f 72 74 0d 0a |-1 - don|t sort..|
|00000220| 76 61 72 20 62 6f 6f 6c | 20 53 6f 72 74 44 65 73 |var bool| SortDes|
|00000230| 63 65 6e 64 69 6e 67 3b | 0d 0a 76 61 72 20 62 6f |cending;|..var bo|
|00000240| 6f 6c 20 45 78 70 61 6e | 64 4c 61 73 74 43 6f 6c |ol Expan|dLastCol|
|00000250| 75 6d 6e 3b 0d 0a 76 61 | 72 20 62 6f 6f 6c 20 62 |umn;..va|r bool b|
|00000260| 49 6e 69 74 69 61 6c 69 | 73 65 64 3b 0d 0a 0d 0a |Initiali|sed;....|
|00000270| 2f 2f 20 73 6f 72 74 69 | 6e 67 20 73 74 75 66 66 |// sorti|ng stuff|
|00000280| 0d 0a 76 61 72 20 62 6f | 6f 6c 20 4e 65 65 64 73 |..var bo|ol Needs|
|00000290| 53 6f 72 74 69 6e 67 3b | 0d 0a 6e 61 74 69 76 65 |Sorting;|..native|
|000002a0| 20 66 69 6e 61 6c 20 66 | 75 6e 63 74 69 6f 6e 20 | final f|unction |
|000002b0| 53 6f 72 74 4c 69 73 74 | 28 29 3b 0d 0a 6e 61 74 |SortList|();..nat|
|000002c0| 69 76 65 20 66 69 6e 61 | 6c 20 66 75 6e 63 74 69 |ive fina|l functi|
|000002d0| 6f 6e 20 43 68 61 6e 67 | 65 53 6f 72 74 4f 72 64 |on Chang|eSortOrd|
|000002e0| 65 72 28 29 3b 0d 0a 6e | 61 74 69 76 65 20 66 69 |er();..n|ative fi|
|000002f0| 6e 61 6c 20 66 75 6e 63 | 74 69 6f 6e 20 41 64 64 |nal func|tion Add|
|00000300| 65 64 49 74 65 6d 28 29 | 3b 09 09 09 2f 2f 20 6d |edItem()|;...// m|
|00000310| 75 73 74 20 62 65 20 63 | 61 6c 6c 65 64 20 77 68 |ust be c|alled wh|
|00000320| 65 6e 20 77 65 20 61 64 | 64 20 61 6e 20 69 74 65 |en we ad|d an ite|
|00000330| 6d 20 74 6f 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |m to the| end of |
|00000340| 74 68 65 20 6c 69 73 74 | 2e 0d 0a 6e 61 74 69 76 |the list|...nativ|
|00000350| 65 20 66 69 6e 61 6c 20 | 66 75 6e 63 74 69 6f 6e |e final |function|
|00000360| 20 55 70 64 61 74 65 64 | 49 74 65 6d 28 69 6e 74 | Updated|Item(int|
|00000370| 20 69 29 3b 09 2f 2f 20 | 73 68 6f 75 6c 64 20 62 | i);.// |should b|
|00000380| 65 20 63 61 6c 6c 65 64 | 20 77 68 65 6e 20 77 65 |e called| when we|
|00000390| 20 75 70 64 61 74 65 20 | 61 6e 20 69 74 65 6d 27 | update |an item'|
|000003a0| 73 20 64 61 74 61 0d 0a | 65 76 65 6e 74 20 73 74 |s data..|event st|
|000003b0| 72 69 6e 67 20 47 65 74 | 53 6f 72 74 53 74 72 69 |ring Get|SortStri|
|000003c0| 6e 67 28 20 69 6e 74 20 | 69 20 29 3b 0d 0a 0d 0a |ng( int |i );....|
|000003d0| 66 75 6e 63 74 69 6f 6e | 20 49 6e 69 74 43 6f 6d |function| InitCom|
|000003e0| 70 6f 6e 65 6e 74 28 47 | 55 49 43 6f 6e 74 72 6f |ponent(G|UIContro|
|000003f0| 6c 6c 65 72 20 4d 79 43 | 6f 6e 74 72 6f 6c 6c 65 |ller MyC|ontrolle|
|00000400| 72 2c 20 47 55 49 43 6f | 6d 70 6f 6e 65 6e 74 20 |r, GUICo|mponent |
|00000410| 4d 79 4f 77 6e 65 72 29 | 0d 0a 7b 0d 0a 09 53 75 |MyOwner)|..{...Su|
|00000420| 70 65 72 2e 49 6e 69 74 | 43 6f 6d 70 6f 6e 65 6e |per.Init|Componen|
|00000430| 74 28 4d 79 43 6f 6e 74 | 72 6f 6c 6c 65 72 2c 20 |t(MyCont|roller, |
|00000440| 4d 79 4f 77 6e 65 72 29 | 3b 0d 0a 09 4f 6e 50 72 |MyOwner)|;...OnPr|
|00000450| 65 44 72 61 77 20 3d 20 | 49 6e 74 65 72 6e 61 6c |eDraw = |Internal|
|00000460| 4f 6e 50 72 65 44 72 61 | 77 3b 0d 0a 7d 0d 0a 0d |OnPreDra|w;..}...|
|00000470| 0a 2f 2f 20 6e 6f 74 69 | 66 69 63 61 74 69 6f 6e |.// noti|fication|
|00000480| 0d 0a 65 76 65 6e 74 20 | 4f 6e 43 6f 6c 75 6d 6e |..event |OnColumn|
|00000490| 53 69 7a 65 64 28 69 6e | 74 20 63 6f 6c 75 6d 6e |Sized(in|t column|
|000004a0| 29 3b 0d 0a 0d 0a 65 76 | 65 6e 74 20 4f 6e 53 6f |);....ev|ent OnSo|
|000004b0| 72 74 43 68 61 6e 67 65 | 64 28 29 0d 0a 7b 0d 0a |rtChange|d()..{..|
|000004c0| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 4f 6c 64 49 74 |.local i|nt OldIt|
|000004d0| 65 6d 3b 0d 0a 0d 0a 09 | 2f 2f 20 67 65 74 20 74 |em;.....|// get t|
|000004e0| 68 65 20 73 65 6c 65 63 | 74 69 6f 6e 20 69 74 65 |he selec|tion ite|
|000004f0| 6d 0d 0a 09 69 66 28 20 | 49 6e 64 65 78 20 3e 3d |m...if( |Index >=|
|00000500| 20 30 20 29 0d 0a 09 09 | 4f 6c 64 49 74 65 6d 20 | 0 )....|OldItem |
|00000510| 3d 20 53 6f 72 74 44 61 | 74 61 5b 49 6e 64 65 78 |= SortDa|ta[Index|
|00000520| 5d 2e 53 6f 72 74 49 74 | 65 6d 3b 0d 0a 0d 0a 09 |].SortIt|em;.....|
|00000530| 2f 2f 20 72 65 63 61 6c | 63 75 6c 61 74 65 20 53 |// recal|culate S|
|00000540| 6f 72 74 44 61 74 61 0d | 0a 09 43 68 61 6e 67 65 |ortData.|..Change|
|00000550| 53 6f 72 74 4f 72 64 65 | 72 28 29 3b 0d 0a 09 2f |SortOrde|r();.../|
|00000560| 2f 20 72 65 73 6f 72 74 | 20 6c 69 73 74 0d 0a 09 |/ resort| list...|
|00000570| 53 6f 72 74 4c 69 73 74 | 28 29 3b 0d 0a 09 4e 65 |SortList|();...Ne|
|00000580| 65 64 73 53 6f 72 74 69 | 6e 67 20 3d 20 46 61 6c |edsSorti|ng = Fal|
|00000590| 73 65 3b 0d 0a 0d 0a 09 | 2f 2f 20 72 65 6d 61 70 |se;.....|// remap|
|000005a0| 20 74 68 65 20 73 65 6c | 65 63 74 69 6f 6e 20 69 | the sel|ection i|
|000005b0| 74 65 6d 20 62 61 63 6b | 20 61 67 61 69 6e 20 74 |tem back| again t|
|000005c0| 6f 20 6b 65 65 70 20 74 | 68 65 20 73 61 6d 65 20 |o keep t|he same |
|000005d0| 69 74 65 6d 20 73 65 6c | 65 63 74 65 64 0d 0a 09 |item sel|ected...|
|000005e0| 69 66 28 20 49 6e 64 65 | 78 20 3e 3d 20 30 20 26 |if( Inde|x >= 0 &|
|000005f0| 26 20 4f 6c 64 49 74 65 | 6d 20 3c 20 49 6e 76 53 |& OldIte|m < InvS|
|00000600| 6f 72 74 44 61 74 61 2e | 4c 65 6e 67 74 68 20 29 |ortData.|Length )|
|00000610| 0d 0a 09 09 49 6e 64 65 | 78 20 3d 20 49 6e 76 53 |....Inde|x = InvS|
|00000620| 6f 72 74 44 61 74 61 5b | 4f 6c 64 49 74 65 6d 5d |ortData[|OldItem]|
|00000630| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00000640| 20 43 6c 65 61 72 28 29 | 0d 0a 7b 0d 0a 09 53 6f | Clear()|..{...So|
|00000650| 72 74 44 61 74 61 2e 52 | 65 6d 6f 76 65 28 30 2c |rtData.R|emove(0,|
|00000660| 53 6f 72 74 44 61 74 61 | 2e 4c 65 6e 67 74 68 29 |SortData|.Length)|
|00000670| 3b 0d 0a 09 49 6e 76 53 | 6f 72 74 44 61 74 61 2e |;...InvS|ortData.|
|00000680| 52 65 6d 6f 76 65 28 30 | 2c 53 6f 72 74 44 61 74 |Remove(0|,SortDat|
|00000690| 61 2e 4c 65 6e 67 74 68 | 29 3b 0d 0a 09 53 75 70 |a.Length|);...Sup|
|000006a0| 65 72 2e 43 6c 65 61 72 | 28 29 3b 0d 0a 7d 0d 0a |er.Clear|();..}..|
|000006b0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 52 65 6d 6f 76 |..functi|on Remov|
|000006c0| 65 64 43 75 72 72 65 6e | 74 28 29 0d 0a 7b 0d 0a |edCurren|t()..{..|
|000006d0| 09 69 66 28 20 49 6e 64 | 65 78 20 3e 3d 20 30 20 |.if( Ind|ex >= 0 |
|000006e0| 29 0d 0a 09 7b 0d 0a 09 | 09 53 6f 72 74 44 61 74 |)...{...|.SortDat|
|000006f0| 61 2e 52 65 6d 6f 76 65 | 28 49 6e 64 65 78 2c 31 |a.Remove|(Index,1|
|00000700| 29 3b 0d 0a 09 09 49 6e | 76 53 6f 72 74 44 61 74 |);....In|vSortDat|
|00000710| 61 2e 52 65 6d 6f 76 65 | 28 49 6e 64 65 78 2c 31 |a.Remove|(Index,1|
|00000720| 29 3b 0d 0a 0d 0a 09 09 | 2f 2f 20 46 6f 72 63 65 |);......|// Force|
|00000730| 20 75 70 64 61 74 69 6e | 67 20 6f 66 20 73 6f 72 | updatin|g of sor|
|00000740| 74 20 64 61 74 61 0d 0a | 09 09 4f 6e 53 6f 72 74 |t data..|..OnSort|
|00000750| 43 68 61 6e 67 65 64 28 | 29 3b 0d 0a 09 09 49 6e |Changed(|);....In|
|00000760| 64 65 78 20 3d 20 2d 31 | 3b 0d 0a 09 7d 0d 0a 7d |dex = -1|;...}..}|
|00000770| 0d 0a 0d 0a 65 76 65 6e | 74 20 49 6e 69 74 69 61 |....even|t Initia|
|00000780| 6c 69 7a 65 43 6f 6c 75 | 6d 6e 73 28 43 61 6e 76 |lizeColu|mns(Canv|
|00000790| 61 73 20 43 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |as C)..{|...local|
|000007a0| 20 69 6e 74 20 69 3b 0d | 0a 09 66 6f 72 28 69 3d | int i;.|..for(i=|
|000007b0| 30 3b 20 69 3c 49 6e 69 | 74 43 6f 6c 75 6d 6e 50 |0; i<Ini|tColumnP|
|000007c0| 65 72 63 2e 4c 65 6e 67 | 74 68 3b 20 69 2b 2b 29 |erc.Leng|th; i++)|
|000007d0| 0d 0a 09 7b 0d 0a 09 09 | 43 6f 6c 75 6d 6e 57 69 |...{....|ColumnWi|
|000007e0| 64 74 68 73 5b 69 5d 20 | 3d 20 41 63 74 75 61 6c |dths[i] |= Actual|
|000007f0| 57 69 64 74 68 28 29 20 | 2a 20 49 6e 69 74 43 6f |Width() |* InitCo|
|00000800| 6c 75 6d 6e 50 65 72 63 | 5b 69 5d 3b 0d 0a 09 7d |lumnPerc|[i];...}|
|00000810| 0d 0a 09 62 49 6e 69 74 | 69 61 6c 69 73 65 64 3d |...bInit|ialised=|
|00000820| 74 72 75 65 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |true;..}|....func|
|00000830| 74 69 6f 6e 20 62 6f 6f | 6c 20 49 6e 74 65 72 6e |tion boo|l Intern|
|00000840| 61 6c 4f 6e 50 72 65 44 | 72 61 77 28 43 61 6e 76 |alOnPreD|raw(Canv|
|00000850| 61 73 20 43 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |as C)..{|...local|
|00000860| 20 66 6c 6f 61 74 20 78 | 3b 0d 0a 09 6c 6f 63 61 | float x|;...loca|
|00000870| 6c 20 69 6e 74 20 69 3b | 0d 0a 09 6c 6f 63 61 6c |l int i;|...local|
|00000880| 20 69 6e 74 20 4f 6c 64 | 49 74 65 6d 3b 0d 0a 0d | int Old|Item;...|
|00000890| 0a 20 20 20 20 69 66 20 | 28 21 62 49 6e 69 74 69 |. if |(!bIniti|
|000008a0| 61 6c 69 73 65 64 29 0d | 0a 20 20 20 20 09 72 65 |alised).|. .re|
|000008b0| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 0d 0a 09 69 |turn tru|e;.....i|
|000008c0| 66 28 20 4e 65 65 64 73 | 53 6f 72 74 69 6e 67 20 |f( Needs|Sorting |
|000008d0| 29 0d 0a 09 7b 0d 0a 09 | 09 2f 2f 20 67 65 74 20 |)...{...|.// get |
|000008e0| 74 68 65 20 73 65 6c 65 | 63 74 69 6f 6e 20 69 74 |the sele|ction it|
|000008f0| 65 6d 0d 0a 09 09 69 66 | 28 20 49 6e 64 65 78 20 |em....if|( Index |
|00000900| 3e 3d 20 30 20 29 0d 0a | 09 09 09 4f 6c 64 49 74 |>= 0 )..|...OldIt|
|00000910| 65 6d 20 3d 20 53 6f 72 | 74 44 61 74 61 5b 49 6e |em = Sor|tData[In|
|00000920| 64 65 78 5d 2e 53 6f 72 | 74 49 74 65 6d 3b 0d 0a |dex].Sor|tItem;..|
|00000930| 0d 0a 09 09 53 6f 72 74 | 4c 69 73 74 28 29 3b 0d |....Sort|List();.|
|00000940| 0a 09 09 4e 65 65 64 73 | 53 6f 72 74 69 6e 67 20 |...Needs|Sorting |
|00000950| 3d 20 46 61 6c 73 65 3b | 0d 0a 0d 0a 09 09 2f 2f |= False;|......//|
|00000960| 20 72 65 6d 61 70 20 74 | 68 65 20 73 65 6c 65 63 | remap t|he selec|
|00000970| 74 69 6f 6e 20 69 74 65 | 6d 20 62 61 63 6b 20 61 |tion ite|m back a|
|00000980| 67 61 69 6e 20 74 6f 20 | 6b 65 65 70 20 74 68 65 |gain to |keep the|
|00000990| 20 73 61 6d 65 20 69 74 | 65 6d 20 73 65 6c 65 63 | same it|em selec|
|000009a0| 74 65 64 0d 0a 09 09 69 | 66 28 20 49 6e 64 65 78 |ted....i|f( Index|
|000009b0| 20 3e 3d 20 30 20 26 26 | 20 4f 6c 64 49 74 65 6d | >= 0 &&| OldItem|
|000009c0| 20 3c 20 49 6e 76 53 6f | 72 74 44 61 74 61 2e 4c | < InvSo|rtData.L|
|000009d0| 65 6e 67 74 68 20 29 0d | 0a 09 09 09 49 6e 64 65 |ength ).|....Inde|
|000009e0| 78 20 3d 20 49 6e 76 53 | 6f 72 74 44 61 74 61 5b |x = InvS|ortData[|
|000009f0| 4f 6c 64 49 74 65 6d 5d | 3b 0d 0a 09 7d 0d 0a 09 |OldItem]|;...}...|
|00000a00| 69 66 28 20 45 78 70 61 | 6e 64 4c 61 73 74 43 6f |if( Expa|ndLastCo|
|00000a10| 6c 75 6d 6e 20 29 0d 0a | 09 7b 0d 0a 09 09 66 6f |lumn )..|.{....fo|
|00000a20| 72 28 20 69 3d 30 3b 69 | 3c 43 6f 6c 75 6d 6e 57 |r( i=0;i|<ColumnW|
|00000a30| 69 64 74 68 73 2e 4c 65 | 6e 67 74 68 2d 31 3b 69 |idths.Le|ngth-1;i|
|00000a40| 2b 2b 20 29 0d 0a 09 09 | 09 78 20 2b 3d 20 43 6f |++ )....|.x += Co|
|00000a50| 6c 75 6d 6e 57 69 64 74 | 68 73 5b 69 5d 3b 0d 0a |lumnWidt|hs[i];..|
|00000a60| 20 20 20 20 20 20 20 20 | 43 6f 6c 75 6d 6e 57 69 | |ColumnWi|
|00000a70| 64 74 68 73 5b 69 5d 20 | 3d 20 41 63 74 75 61 6c |dths[i] |= Actual|
|00000a80| 57 69 64 74 68 28 29 20 | 2d 20 78 3b 0d 0a 09 7d |Width() |- x;...}|
|00000a90| 0d 0a 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00000aa0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 47 |.}....fu|nction G|
|00000ab0| 65 74 43 65 6c 6c 4c 65 | 66 74 57 69 64 74 68 28 |etCellLe|ftWidth(|
|00000ac0| 20 69 6e 74 20 43 6f 6c | 75 6d 6e 2c 20 6f 75 74 | int Col|umn, out|
|00000ad0| 20 66 6c 6f 61 74 20 4c | 65 66 74 2c 20 6f 75 74 | float L|eft, out|
|00000ae0| 20 66 6c 6f 61 74 20 57 | 69 64 74 68 20 29 0d 0a | float W|idth )..|
|00000af0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 69 3b |{...loca|l int i;|
|00000b00| 0d 0a 09 4c 65 66 74 20 | 3d 20 30 3b 0d 0a 09 66 |...Left |= 0;...f|
|00000b10| 6f 72 28 20 69 3d 30 3b | 69 3c 43 6f 6c 75 6d 6e |or( i=0;|i<Column|
|00000b20| 20 26 26 20 69 3c 43 6f | 6c 75 6d 6e 57 69 64 74 | && i<Co|lumnWidt|
|00000b30| 68 73 2e 4c 65 6e 67 74 | 68 3b 69 2b 2b 20 29 0d |hs.Lengt|h;i++ ).|
|00000b40| 0a 09 09 4c 65 66 74 20 | 2b 3d 20 43 6f 6c 75 6d |...Left |+= Colum|
|00000b50| 6e 57 69 64 74 68 73 5b | 69 5d 3b 0d 0a 09 69 66 |nWidths[|i];...if|
|00000b60| 28 20 69 3c 43 6f 6c 75 | 6d 6e 57 69 64 74 68 73 |( i<Colu|mnWidths|
|00000b70| 2e 4c 65 6e 67 74 68 20 | 29 0d 0a 09 09 57 69 64 |.Length |)....Wid|
|00000b80| 74 68 20 3d 20 43 6f 6c | 75 6d 6e 57 69 64 74 68 |th = Col|umnWidth|
|00000b90| 73 5b 69 5d 3b 0d 0a 09 | 65 6c 73 65 0d 0a 09 09 |s[i];...|else....|
|00000ba0| 57 69 64 74 68 20 3d 20 | 30 3b 0d 0a 0d 0a 09 4c |Width = |0;.....L|
|00000bb0| 65 66 74 20 2b 3d 20 43 | 65 6c 6c 53 70 61 63 69 |eft += C|ellSpaci|
|00000bc0| 6e 67 3b 0d 0a 09 57 69 | 64 74 68 20 2d 3d 20 32 |ng;...Wi|dth -= 2|
|00000bd0| 2a 43 65 6c 6c 53 70 61 | 63 69 6e 67 3b 0d 0a 7d |*CellSpa|cing;..}|
|00000be0| 0d 0a 0d 0a 00 | |..... | |
+--------+-------------------------+-------------------------+--------+--------+